x86/altp2m: alternate p2m memory events
authorEd White <edmund.h.white@intel.com>
Fri, 24 Jul 2015 11:34:46 +0000 (13:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2015 11:34:46 +0000 (13:34 +0200)
commite1aae2f6ec52b7cb125416d417bde646141f4465
tree3f1db72843947023c75ec06aa00cd59514db318b
parent00e5fe6a83421766d5138c0cdf331e2e2b499da5
x86/altp2m: alternate p2m memory events

Add a flag to indicate that a memory event occurred in an alternate p2m
and a field containing the p2m index. Allow any event response to switch
to a different alternate p2m using the same flag and field.

Modify p2m_mem_access_check() to handle alternate p2m's.

Signed-off-by: Ed White <edmund.h.white@intel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> for the x86 bits.
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Tamas K Lengyel <tlengyel@novetta.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/mm/p2m.c
xen/common/vm_event.c
xen/include/asm-arm/p2m.h
xen/include/asm-x86/p2m.h
xen/include/public/vm_event.h